package com.hopes.bizz.poll.hj212.config;

import com.hopes.bizz.poll.hj212.server.handler.DataHandlerChain;
import com.hopes.bizz.poll.hj212.server.handler.OnlineMonitorDataHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * HJ212相关配置
 *
 * @author xk
 */
@Configuration
public class HJ212Config {

    @Autowired
    private OnlineMonitorDataHandler onlineMonitorDataHandler;

    @Bean
    public DataHandlerChain dataHandlerChain(){
        DataHandlerChain handlerChain = new DataHandlerChain();
        handlerChain.addHandler(onlineMonitorDataHandler);
        return handlerChain;
    }
}
